package com.buba.controller;

import com.buba.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import result.CommonResult;


import javax.servlet.http.HttpServletResponse;

/**
 * 图片上传
 * LC: 2022-11-17 13:41
 */
@RestController
@CrossOrigin
public class FileController {

    @Autowired
    FileService fileService;

    /**
     * 根据id查询日记图片
     * @param id
     * @return
     */
    @GetMapping("/getDiaryRecordFileId")
    public CommonResult getDiaryRecordFileId(String[] id){
        return CommonResult.ok(fileService.getDiaryRecordFileId(id));
    }

}
